
if (ASIO_DYN_LINK)
    add_library(${PROJECT_NAME}
        SHARED
        asio.cpp
    )
    target_include_directories(${PROJECT_NAME}
        PUBLIC
        ${CMAKE_SOURCE_DIR}/include
    )
if (UNIX)
    target_link_libraries(${PROJECT_NAME}
        PUBLIC
        pthread
    )
endif (UNIX)

install (
    TARGETS ${PROJECT_NAME}
    # EXPORT "${PROJECT_CMAKE_NAME}Targets"
    LIBRARY DESTINATION "lib"
    INCLUDES DESTINATION "include"
)
endif(ASIO_DYN_LINK)


add_subdirectory(tests)
add_subdirectory(examples/cpp11)
